﻿@model TaoNiuOA.Models.User
@{
    ViewBag.Title = "编辑员工信息";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>编辑员工信息</legend>
        @Html.HiddenFor(model => model.UserID)
        @Html.HiddenFor(model => model.RegTime)
        @Html.HiddenFor(model => model.Password)
        @Html.HiddenFor(model => model.Email)
        @Html.HiddenFor(model => model.PasswordQuestion)
        @Html.HiddenFor(model => model.PasswordAnswer)
        @Html.HiddenFor(model => model.LastActivityTime)
        @Html.HiddenFor(model => model.UserInfoID)
        <div class="editor-label">
            @Html.LabelFor(model => model.UserName)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.UserName)
            @Html.HiddenFor(model => model.UserName)
        </div>
        <div class="editor-label">
            部门
        </div>
        <div class="editor-field">
            @Html.DropDownList("DepartmentID")
        </div>
        <div class="editor-label">
            职位
        </div>
        <div class="editor-field">
            @Html.DropDownList("UserGroupID")
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Status)
        </div>
        <div class="editor-field">
            @Html.DropDownList("Status")
            @Html.ValidationMessageFor(model => model.Status)
        </div>
        <p>
            <input type="submit" value="保存" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("返回列表", "Index")
</div>
